home *** CD-ROM | disk | FTP | other *** search
- Path: news.dal.ca!news
- From: keichele@ac.dal.ca (Klaus Eichele)
- Newsgroups: comp.lang.c
- Subject: Re: Hiding a password
- Date: Tue, 05 Mar 1996 05:22:11 GMT
- Organization: Dalhousie University
- Message-ID: <4hg505$asg@News.Dal.Ca>
- References: <1996Feb29.224936.137160@forest> <4he620$qf2@hpbblb.bbn.hp.com> <4hehmd$1fr@fnord.dfw.net> <4hei0c$1fr@fnord.dfw.net>
- NNTP-Posting-Host: rewasylishen.chem.dal.ca
- X-Newsreader: Forte Free Agent 1.0.82
-
- ftlgeuse@dfw.dfw.net (Fetelgeuse) wrote:
-
- >Fetelgeuse (ftlgeuse@dfw.dfw.net) wrote:
- >: I wrote a function to do precisely the same thing. I made a function
- >: something like:
- >: char * GetString_NoEcho()
- >: {
- >: char *temp;
- >: int i=1;
- >: while(temp[i-1]!=13) {
- >: temp[i-1]=getch();
- >: i++;
- >: }
- >: temp[i]=0;
- >: }
- >:
-
- >OOPS! sorry - be sure and add a return to that:
-
- >...
- >...
- >temp[i]=0;
- >return(temp);
- >}
- >Now all else said before still applies.
- >Fetelgeuse
- >
-
- Hopefully, this is only a hoax as there are several other
- errors/problems with this piece of code. Did you actually use this?
- The "Echo" of this function will be quite different from the intended
- purpose.
-
- Cheers, Klaus
- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Klaus Eichele keichele@is.dal.ca
- http://is.dal.ca/~keichele/keichele.html
-
-